import request from '@/utils/request.js'

// 获取前十条文章
export const articleListService = () => {
    return request.get('/user/article/list');
}

// 获取文章详情
export const articleDetailService = (id) => {
    return request.get(`/user/article/${id}`);
}

// 点击增加浏览量
export const articleViewService = (id) => {
    return request.put(`/user/article/${id}`); 
}

// 点赞
export const articleLikeService = (id) => {
  return request.put(`/user/article/like/${id}`);  
}